package org.slf4j.impl;


import com.acme.logging.MyLoggerFactory;
import org.slf4j.ILoggerFactory;
import org.slf4j.spi.LoggerFactoryBinder;

/**
 * Created by Matveev Alexander on 13.12.13.
 *
 */
public class StaticLoggerBinder implements LoggerFactoryBinder {

    private static final StaticLoggerBinder instance = new StaticLoggerBinder();

    public static StaticLoggerBinder getSingleton(){
        return instance;
    }

    @Override
    public ILoggerFactory getLoggerFactory() {
        return new MyLoggerFactory();
    }

    @Override
    public String getLoggerFactoryClassStr() {
        return "com.acme.logging.MyLoggerFactory";
    }
}
